import os
import platform

VER_DEV = 'dev'  #开发版
VER_TEST = 'test' #测试版
VER_PRO = 'pro'  #正式版
VER = 'test'     #当前版本

DEBUG = 0


# 当前系统目录
def get_root():
    filePath = os.path.realpath(__file__)
    return os.path.dirname(os.path.dirname(filePath))

BASE_PATH = get_root()


SYS_WIN = 0
SYS_LINUX = 1
#当前系统是什么
SYSTEM = None
if 'Windows' in platform.system():
    SYSTEM = SYS_WIN
elif 'Linux' in platform.system():
    SYSTEM = SYS_LINUX

#分隔符
SEP = r'\\'

#驱动目录
WBT_CHROME = 0
WBT_FIREFOX = 1
WBT_IE = 2
PATH_CHROME_DRIVER = None
PATH_IE_DRIVER = None
if SYSTEM == SYS_WIN:
    #chrome浏览器驱动
    PATH_CHROME_DRIVER = BASE_PATH + r'\uitest\driver\chromedriver.exe'
    #IE浏览器驱动
    PATH_IE_DRIVER = BASE_PATH + r'\uitest\driver\IEDriverServer.exe'
else:
    SEP = "/"
    #chrome浏览器驱动
    PATH_CHROME_DRIVER = BASE_PATH + SEP + 'uitest' + SEP + 'driver' + SEP + 'chromedriver'




